#ifndef MOONLIGHT_OHOS_AUDIOSTREAMUTILS_H
#define MOONLIGHT_OHOS_AUDIOSTREAMUTILS_H

#include <ohaudio/native_audiostream_base.h>

#undef LOG_DOMAIN
#undef LOG_TAG
#define LOG_DOMAIN  0x0
#define LOG_TAG     "AudioStreamUtils"
#include <hilog/log.h>


#define AS_CALL_OR_ELSE(expr, otherwise) \
    if (auto asCallResult= (expr); asCallResult != AUDIOSTREAM_SUCCESS) { \
        OH_LOG_ERROR(LOG_APP, "AudioStream call %{public}s failed with %{public}d", #expr, asCallResult); \
        otherwise; \
    }

struct AudioStreamUtils {
};

#endif //MOONLIGHT_OHOS_AUDIOSTREAMUTILS_H
